package com.youliao.jedis;

import redis.clients.jedis.Jedis;

/**
 * @Author Dali
 * @Date 2021/5/2 16:20
 * @Version 1.0
 * @Description： idea连接远程redis
 */
public class JedisDemo1 {
    public static void main(String[] args) {
        //创建Jedis对象
        Jedis jedis = new Jedis("192.168.187.150",6379);
        //测试 测试
        String value = jedis.ping();
        System.out.println(value);
    }
}
